package com.mgs.tagger.fsdata
{
	import flash.filesystem.File;
	import flash.filesystem.FileMode;
	import flash.filesystem.FileStream;
	import flash.utils.ByteArray;

	public class FsDataUtil
	{
		public static function loadDataFromFile(file:File):ByteArray{
			var stream:FileStream = new FileStream();
			stream.open(file, FileMode.READ);
			var ba:ByteArray = new ByteArray();
			stream.readBytes(ba, 0, file.size);
			stream.close();
			return ba;
		}
		
	}
}